import myAxios from "@/request/myAxios.ts";
import {showToast} from "vant";

// match模式获取用户
export const getMatchPage = (currentPage:number,username:string) => {
    return  myAxios.get('/user/match',{
        params: {
            currentPage,
            username
        }
    })
        .then(function (response) {
            return response.data
;
        })
        .catch(function () {
            showToast('请求失败')
        })
}

